<template>
    <div>
        <table v-for="row in contracts" style="width: 50%;margin-top:20px;" class="bodytable6">
            <tr>
                <td class="table_label" style="width: 100px;">合同编号：</td>
                <td>
                    <span>{{row.FNo}}</span>
                </td>
            </tr>
            <tr>
                <td class="table_label">申报等级：</td>
                <td>
                    <span>{{row.FGrade}}</span>
                </td>
            </tr>
            <tr>
                <td class="table_label">申报资金种类：</td>
                <td>
                    <span>{{row.FBankrollType}}</span>
                </td>
            </tr>
            <tr>
                <td class="table_label">合同签订时间：</td>
                <td>
                    <span>{{row.FCompletedDate}}</span></td>
            </tr>
            <tr>
                <td class="table_label">合同完成时间：</td>
                <td>
                    <span>{{row.FToCompletedDate}}</span></td>
            </tr>
        </table>
        <br>
        <br>
    </div>
</template>

<script>
    import util from '../../common/util'
    export default {
        data(){
            return {
                contracts:[{}],
                projectID:0
            }
        },
        methods:{
            _init(projectID){
                this.projectID = projectID
                let url = "server/customer/Contract.ashx?cmd=GetListByProject"
                util.get(url,{FProjectID:this.projectID},null,result=> {
                    this.contracts =  util.date.formatArr(result.data,"yyyy-MM-dd")
                    if(!this.contracts || this.contracts.length==0){
                        this.contracts = [{}]
                    }
                })
            }
        }
    }
</script>